﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Calendar/Calendar.master" AutoEventWireup="true" CodeBehind="AddEvent.aspx.cs" Inherits="HRdex_Final.Calendar.WebForm3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div align="center">
        <asp:Calendar ID="Calendar1" runat="server" CssClass="monthCalendar"
            BorderStyle="Solid" ondayrender="Calendar1_DayRender" DayNameFormat="Shortest">
            <DayHeaderStyle CssClass="dayHeaderStyle" />
            <DayStyle CssClass="dayStyle" />
            <OtherMonthDayStyle CssClass="otherMonthStyle" />
            <TodayDayStyle BackColor="#FFFFCC" CssClass="todayStyle" />
            <WeekendDayStyle CssClass="weekendDayStyle" />
        </asp:Calendar>
        <br />
         <asp:LinkButton ID="CalendarLinkButton" runat="server" CssClass="hide" 
            onclick="CalendarLinkButton_Click"></asp:LinkButton>
        <asp:Label ID="Label1" runat="server" Text="Details Here:" Font-Size="Larger" Font-Bold="True"></asp:Label>
         <asp:Label ID="ResultsLabel" runat="server" CssClass="results" Font-Size="Large" Font-Italic="True"></asp:Label>

</div>

<div id="AddTaskPane" onblur="this.style.visibility='hidden'" style="position:absolute; visibility:hidden; width:320px; height:170px; background-color:Aqua; z-index:55555">
    <table>
    <tr>
    <td colspan="2" align="right">
    <a href="#" onclick="HideTaskPane()"> <img src="../Images/icon-delete.gif"/> </a>
    </td> </tr>
    
    <tr>
    <td>Title:</td>
    <td><asp:TextBox ID="txtTitle" runat="server" width="200"/></td>
    </tr>

    <tr>
    <td>Details:</td>
    <td><asp:TextBox ID="txtdetails" runat="server" Height="80px" Width="250px" 
            TextMode="MultiLine" /></td>
    </tr>

    <tr>
    <td colspan="2" align="center"> 
    <asp:Button ID="Btn_AddTask" runat="server" Text="Save" OnCommand="Btn_AddTask_Command" />
    </td>
<%-- <td colspan = "2"><asp:Button ID="Btn_EditTask" runat="server" Text="Edit" OnCommand="Btn_EditTask_Command" /> </td>--%>
    </tr>

    </table>
    </div>

    <input type="hidden" id="hiddenSelectedDate" runat="server" />&nbsp;<br />

    <script language="javascript">
        function HideTaskPane() {
            document.getElementById("AddTaskPane").style.visibility = 'hidden';
        }

        function ShowAddTaskPane(e, selectedDate) {
            var ev = e || window.event;
            document.getElementById("AddTaskPane").style.visibility = 'visible';
            //document.getElementById("Btn_EditTask").style.visibility = 'hidden';

//            // if the browser is IE
//            if (navigator.appName == 'Microsoft Internet Explorer') {
//                document.getElementById("AddTaskPane").style.top = ev.clientY;
//                document.getElementById("AddTaskPane").style.left = ev.clientX;
//            }

//            // if the browser is FIREFOX
//            else if (navigator.appName == 'Netscape') {

//                document.getElementById("AddTaskPane").style.top = ev.clientY + 'px';
//                document.getElementById("AddTaskPane").style.left = ev.clientX + 'px';
//            }

            CallServer(selectedDate, '');
        }

        //        function ShowEditTaskPane(e, selectedDate) {
        //        var ev = e || window.event;
        //        document.getElementById("AddTaskPane").style.visibility = 'visible';
        //        document.getElementById("Btn_EditTask").style.visibility = 'visible';
        //    
        //    

        function ReceiveServerData(rValue) {
            //do nothing
        }

</script>

</asp:Content>
